/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sg.edu.nus.iss.phoenix.schedule.entity;

import javax.xml.bind.DatatypeConverter;
import java.sql.Time;
import java.util.Calendar;
import java.util.GregorianCalendar;

/**
 * @author tham
 */
public class ProgramSlot {
    private String name;//radio program name

    public String getName() {
        return name;
    }

    public void setName(String nameSet) {
        name = nameSet;
    }

    private String presenter;//presenter name

    public String getPresenter() {
        return presenter;
    }

    public void setPresenter(String pre) {
        presenter = pre;
    }

    private String producer;//producerName

    public String getProducer() {
        return producer;
    }

    public void setProducer(String str) {
        producer = str;
    }

    public GregorianCalendar date;

    public GregorianCalendar getDate() {
        return date;
    }

    public void setDate(GregorianCalendar setD) {
        date = setD;
        int year = date.get(Calendar.YEAR);
        int month = date.get(Calendar.MONTH);
        int day = date.get(Calendar.DAY_OF_MONTH);
        dispdate = DatatypeConverter.printDate(date);
    }

    public String dispdate;

    public String getDispDate() {
        return dispdate;
    }

    public void setDispDate(String setD) {
        dispdate = setD;
    }

    public Time time;

    public Time getTime() {
        return time;
    }

    public void setTime(Time setT) {
        time = setT;
    }

    public int dispWeek;

    public int getWeek() {
        return dispWeek;
    }

    public void setWeek(int setT) {
        dispWeek = setT;
    }
}
